package com.reader.cms.entity.sys;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
* 
* </p>
*
* @author jiahaikun
* @date 2018-07-24
*/
@TableName("sys_error_log")
public class SysErrorLog extends Model<SysErrorLog> {

private static final long serialVersionUID = 1L;



@TableId(value="id", type= IdType.AUTO)

private Integer id;

/**
* 错误消息ID
*/

private Integer code;

/**
* 错误调用URL
*/

private String url;

/**
* 错误详细内容
*/

private String message;

/**
* 记录插入时间
*/
@TableField("insert_dt")
private Date insertDt;

/**
* 记录插入ID
*/
@TableField("insert_user_id")
private Integer insertUserId;


private String remark;

@TableField(exist = false)
private String loginId;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public Integer getCode() {
return code;
}

public void setCode(Integer code) {
this.code = code;
}

public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

public Date getInsertDt() {
return insertDt;
}

public void setInsertDt(Date insertDt) {
this.insertDt = insertDt;
}

public Integer getInsertUserId() {
return insertUserId;
}

public void setInsertUserId(Integer insertUserId) {
this.insertUserId = insertUserId;
}

public String getRemark() {
return remark;
}

public void setRemark(String remark) {
this.remark = remark;
}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "SysErrorLog{" +
	", id=" + id +
	", code=" + code +
	", url=" + url +
	", message=" + message +
	", insertDt=" + insertDt +
	", insertUserId=" + insertUserId +
	", remark=" + remark +
"}";
}
}